<meta http-equiv="Content-type" content="text/html;chatsect=utf-8">


<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="Hege Refsnes">
<meta charset="UTF-8"


      <form method="POST">
    <input type="text" name="rating1"><br>
    <input type="text" name="rating2">
    <input type="submit" name="submit" value="Search">
</form>


<?php
require_once '../Config/config.php';

$connection = mysql_connect(DB_HOST . ":" . DB_PORT, DB_USER, DB_PASS) or die(mysql_error());

mysql_select_db(DB_NAME, $connection);

$query = "SELECT * FROM pages LIMIT 0,20";

$data = mysql_query($query, $connection); 
    ?> 
    <table border="1px">
        <tr>
            <td>  pid  </td>
            <td>  id </td>
            <td>  name </td>
            <td>  username </td>
            <td>  phone </td>
            <td>  likes </td>
        </tr>
    <?php while ($row = mysql_fetch_assoc($data)) { ?>
            <tr>
                <td><?php echo $row["pid"] ?>  </td>
                <td><?php echo $row["id"] ?>  </td>
                <td><?php echo $row["name"] ?>  </td>
                <td><?php echo $row["username"] ?>  </td>
                <td><?php echo $row["phone"] ?>  </td>
                <td><?php echo $row["likes"] ?>  </td>
                <td><?php echo $row["category"] ?></td>
                <td><?php echo $row["url"] ?></td>
                <td><?php echo $row["website"] ?></td>
                <td><?php echo $row["picture"] ?></td>
                <td><?php echo $row["street"] ?></td>
                <td><?php echo $row["city"] ?></td>
                <td><?php echo $row["country"] ?></td>
                <td><?php echo $row["note"] ?></td>
                <td><?php echo $row["date"] ?></td>
                <td><?php echo $row["status"] ?></td>

            </tr>
    <?php } ?>
</table>



